package com.xd.pre.modules.tpshop.virtuaBean;

import com.xd.pre.modules.tpshop.domain.TpOrderGoods;
import lombok.Data;

import java.util.List;

@Data
public class OrderVirtual {

    private Integer orderId;
    private String orderSn;
    private Integer userId;

//	private Integer actionId;  //订单状态表 `tp_order_action` 他需要`order_id`+`log_time`+`order_status`+`shipping_status`+`pay_status` 查找

    private Integer orderStatus;
    private Integer shippingStatus;
    private Integer payStatus;

    private Integer addressId;
    private Integer shippingId;
    private Integer paymentId;

    private String invoiceTitle;

    private Double goodsPrice;
    private Double shippingPrice;
    private Double userMoney;
    private Double couponPrice;
    private Integer integral;
    private Double integralMoney;
    private Double orderAmount;
    private Double totalAmount;
    private Integer addTime;

    private Integer shippingTime;        //'最后新发货时间'DEFAULT '0'
    private Integer confirmTime;        //'收货确认时间'DEFAULT '0'
    private Integer payTime;            //'支付时间'DEFAULT '0'

    private Integer orderPromId;
    private Double orderPromAmount;

    private Double discount;    //'价格调整DEFAULT '0.00'
    private String userNote;    //'用户备注DEFAULT null
    private String adminNote;    //'管理员备注DEFAULT null
    private String parentSn;    //'父单单号'DEFAULT null
    private Integer isDistribut;//'是否已分成0未分成1已分成''DEFAULT '0'


    /****** 额外增加字段(控制订单列表按钮状态) for app ****************/
    int payBtn = 0;    //pay_btn (支付按钮)
    int cancelBtn = 0;    //cancel_btn (取消订单按钮) 0: 隐藏, 1:显示
    int receiveBtn = 0;    //receive_btn (确认收货按钮) 0: 隐藏, 1:显示
    int commentBtn = 0;    //comment_btn (评价按钮) 0: 隐藏, 1:显示
    int shippingBtn = 0;    //shipping_btn (查看物流) 0: 隐藏, 1:显示
    int returnBtn = 0;    //return_btn (联系客服/退换货) 0: 隐藏, 1:显示
    String orderStatusCode;    //order_status_code (订单状态:英文)
    String orderStatusDesc;    //order_status_code (订单状态:中文)

    List<TpOrderGoods> goods_list;


}
